<template>
	<view class="content">
		<view class="item" @click="gotoMesh('gongDan/gongDanIndex')">
			<image class="img" src="../../static/home_icons/AddOutline.png" mode=""></image>
			<p>我的维修单</p>
		</view>
		<view class="item" @click="gotoMesh('baoXiaoDan/baoXiaoDanListView')">
			<image class="img" src="../../static/home_icons/BoxLine.png" mode=""></image>
			<p>报销单</p>
		</view>

		<view class="item" @click="gotoMesh('jiaohuoModel/jiaohuo_Index')">
			<image class="img" src="../../static/home_icons/ShippingBox.png" mode=""></image>
			<p>交货</p>
		</view>
		<view class="item" @click="gotoMesh('shouhuoModel/shouHuoIndex')">
			<image class="img" src="../../static/home_icons/Receive.png" mode=""></image>
			<p>收货</p>
		</view>

		<view class="item">
			<image class="img" src="../../static/home_icons/Chat.png" mode=""></image>
			<p>AI知识库</p>
		</view>

		<view class="item" @click="gotoMesh('userMessage/userMessageView')">
			<image class="img" src="../../static/home_icons/Setting.png" mode=""></image>
			<p>账号设置</p>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'

	const gotoMesh = (path) => {
		uni.navigateTo({
			url: '/model/' + path
		})
	}
</script>

<style lang="scss" scoped>
	.content {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20rpx;
		padding: 30rpx;

		.item {
			padding: 10rpx;
			text-align: center;
			border: 1px solid gainsboro;

			.img {
				width: 140rpx;
				height: 140rpx;
			}
		}
	}
</style>